ext4: zero out the unused memory region in the extent tree block
authorSriram Rajagopalan <sriramr@arista.com>
Fri, 10 May 2019 23:28:06 +0000 (19:28 -0400)
committerBen Hutchings <ben@decadent.org.uk>
Wed, 19 Jun 2019 22:16:58 +0000 (23:16 +0100)
commitd90cfe9e8fa0503f447057e94d05030bf1b64c57
treec6de4830f58b7034ce580214eecf8c34cf75f7e2
parent0bfc0925d5ced42ca1d753efbdcd5a623a945aee
ext4: zero out the unused memory region in the extent tree block

This commit zeroes out the unused memory region in the buffer_head
corresponding to the extent metablock after writing the extent header
and the corresponding extent node entries.

This is done to prevent random uninitialized data from getting into
the filesystem when the extent block is synced.

This fixes CVE-2019-11833.

Signed-off-by: Sriram Rajagopalan <sriramr@arista.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Cc: stable@kernel.org
Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name ext4-zero-out-the-unused-memory-region-in-the-extent.patch
fs/ext4/extents.c